package com.ych.controller;

import com.ych.bean.ResponseBean;
import com.ych.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoginController {
    @Autowired
    private LoginService loginService;
    @GetMapping("/login")
    public ResponseBean login(String yname, String ypsw){
        System.out.println("登录接口");
        return  loginService.login(yname,ypsw);
    }
}
